2026-09-20 · tryhackme, class-notes
Note: rooms in this module include Operating Systems: Introduction and Windows Basics, with Linux covered alongside. These notes are written from the module outline — cross-check room specifics as you go.
Class notes · TryHackMe Pre Security (2026 path) · Module 3
Quick reference: the short version of this module is the Module 3 cheat sheet. OS internals in more depth are in TCM Help Desk section 6.
Note: rooms in this module include Operating Systems: Introduction and Windows Basics, with Linux covered alongside. These notes are written from the module outline — cross-check room specifics as you go.
By the end of these notes you should be able to:
An operating system sits between you, your applications and the hardware. It manages resources so programs can share the machine safely.
Job
What it means for you
Process management
Many apps run "at once" — the OS shares CPU time between them
Memory management
Each app gets its own memory; one can't read another's
File management
Files and folders, paths, permissions
Device management
Drivers make printers, Wi-Fi and USB devices work
User management
Accounts, passwords, admin rights
Interface
Desktop (GUI) and command line (CLI)
Type
Examples
Built for
Desktop
Windows 11, macOS, Ubuntu Desktop
One user at a keyboard
Server
Windows Server, Ubuntu Server, RHEL
Running services for many users; often no GUI
Mobile
Android, iOS
Touch, battery life, app stores, sensors
Embedded
Custom Linux, RTOS
One dedicated job inside a device
Real-time (RTOS)
FreeRTOS, VxWorks
Guaranteed response times (cars, industrial control)
A friend gives you an old PC and can't remember anything about it. Before deciding whether to wipe, upgrade or sell it, identify it.
If it runs Windows:
Question
How
Which Windows, and which build?
Win+R → winver
CPU, RAM, model, BIOS mode
Win+R → msinfo32
Full summary, including install date and hotfixes
systeminfo in Command Prompt
Storage and free space
File Explorer → This PC, or Get-Volume
Is it activated and still supported?
Settings → System → Activation; compare the build with Microsoft's support dates
If it runs Linux:
cat /etc/os-release \
uname -r \
lscpu | head \
free -h \
lsblk \
Decision:
Element
Use
Desktop
Shortcuts and open windows
Start menu
Launch apps; just start typing to search
Taskbar
Pinned and running apps, system tray, clock and notifications
File Explorer (Win+E)
Browse drives, folders and files
Settings (Win+I)
Modern configuration: Wi-Fi, updates, accounts, privacy
Control Panel (control)
Classic configuration; some settings still only live here
Useful shortcuts:
Shortcut
Does
Win+R
Run box
Win+X
Power-user menu
Ctrl+Shift+Esc
Task Manager
Win+L
Lock the PC
Win+D
Show the desktop
Alt+Tab
Switch apps
Type in Win+R
Opens
Use it to
winver
About Windows
Check the exact version and build
msinfo32
System Information
Hardware, BIOS mode, Secure Boot state, drivers
taskmgr
Task Manager
Processes, performance, startup apps
resmon
Resource Monitor
Detailed CPU, memory, disk and network use per process
control
Control Panel
Classic settings
appwiz.cpl
Programs and Features
Uninstall or repair programs
sysdm.cpl
System Properties
Computer name, domain, remote settings, environment variables
ncpa.cpl
Network Connections
Adapter settings, IP configuration
services.msc
Services
Start, stop and configure background services
eventvwr.msc
Event Viewer
System, Application and Security logs
compmgmt.msc
Computer Management
Disks, users, services and logs in one console
diskmgmt.msc
Disk Management
Partitions and volumes
lusrmgr.msc
Local Users and Groups
Local accounts (Pro/Enterprise editions only)
wf.msc
Firewall with Advanced Security
Detailed firewall rules
regedit
Registry Editor
Low-level settings — back up before editing
Folder
Holds
C:\Windows
The operating system
C:\Program Files
64-bit applications
C:\Program Files (x86)
32-bit applications
C:\Users\
Each user's profile: Desktop, Documents, Downloads, AppData
C:\Users\
Per-user app settings and data (hidden by default)
Turn on File Explorer → View → Show → Hidden items and File name extensions.
Method
Notes
Microsoft Store
Sandboxed apps, auto-updated
Installer (.exe / .msi)
Traditional; usually needs admin rights
winget
Command-line package manager, e.g. winget install Mozilla.Firefox
Uninstall
Settings → Apps → Installed apps, or appwiz.cpl
Area
Where
What to check
Antivirus
Windows Security → Virus & threat protection
Real-time protection on; definitions current
Firewall
Windows Security → Firewall & network protection
On for all profiles (domain, private, public)
Updates
Settings → Windows Update
Up to date; no failed updates
Account protection
Windows Security → Account protection
Windows Hello, dynamic lock
UAC
Control Panel → User Accounts
Not set to "Never notify"
Device security
Windows Security → Device security
Core isolation / memory integrity; TPM and Secure Boot
Get-MpComputerStatus | Select-Object RealTimeProtectionEnabled, AntivirusSignatureLastUpdated Get-NetFirewallProfile | Select-Object Name, Enabled Update-MpSignature \
Start-MpScan -ScanType QuickScan \
Linux is usually managed from a terminal running a shell (typically Bash). Everything lives in one tree starting at / — there are no drive letters.
Directory
Holds
/
The root of everything
/home/
Users' files (~ is shorthand for your own)
/root
The root user's home
/etc
System configuration files (plain text)
/var/log
Log files
/bin, /usr/bin
Programs
/tmp
Temporary files
Task
Command
Where am I?
pwd
List files (including hidden, with details)
ls -la
Change directory
cd /etc, cd ~, cd ..
Read a file
cat file, less file
Find text in a file
grep "word" file
Make / remove directory
mkdir name, rmdir name
Copy / move / delete
cp, mv, rm (no recycle bin)
The Shotts class notes cover all of this in depth.
Distro family
Package manager
Update everything
Install
Debian / Ubuntu
apt
sudo apt update && sudo apt upgrade
sudo apt install nmap
RHEL / Fedora
dnf
sudo dnf upgrade
sudo dnf install nmap
Windows
Linux
All-powerful account
Administrator (and members of the Administrators group)
root (UID 0)
Everyday elevation
UAC prompt: "Do you want to allow this app to make changes?"
sudo
Switch to another user
Sign out, or "Run as different user"
su - username
Who am I?
whoami, whoami /groups
whoami, id
List users
net user, Get-LocalUser
cat /etc/passwd
Admin members
net localgroup administrators
getent group sudo (Ubuntu) or wheel (RHEL)
UAC (User Account Control) means even administrators run with standard rights until an action needs elevation. Then Windows asks for confirmation. It limits the damage malware can do silently.
Every file has an owner, a group and permissions for three classes: user (owner), group and others.
-rwxr-x--- 1 andrew devs 4096 Sep 18 10:00 deploy.sh |\_/\_/\_/ | | | | | | owner group | | | others: --- (no access) | | group: r-x (read, execute) | owner: rwx (read, write, execute) file type: - = file, d = directory, l = link
Letter
On a file
On a directory
Octal value
r
Read contents
List contents
4
w
Modify
Create and delete files inside
2
x
Run as a program
Enter (cd)
1
Worked example — setting permissions:
chmod 750 backup.sh ls -l backup.sh \
Changing ownership needs root:
sudo chown andrew:devs backup.sh
Windows uses NTFS permissions (ACLs): right-click → Properties → Security, or icacls C:\Data from the command line.
Task
Windows
Linux
Live view
Task Manager (Ctrl+Shift+Esc)
top (or htop)
List all
tasklist, Get-Process
ps aux
Find one
Get-Process -Name chrome
ps aux | grep ssh
End one
taskkill /PID 1234 /F, Stop-Process -Id 1234
kill 1234 (kill -9 only as a last resort)
Services
services.msc, Get-Service
systemctl status ssh, systemctl list-units --type=service
Need
Windows
Linux
OS version
winver, systeminfo
cat /etc/os-release
Kernel / build
systeminfo | findstr /B /C:"OS Version"
uname -r
Hostname
hostname
hostname
Uptime
(Get-CimInstance Win32_OperatingSystem).LastBootUpTime
uptime
Disk space
Get-Volume
df -h
IP configuration
ipconfig /all
ip a
Logs
Event Viewer (eventvwr.msc)
journalctl, /var/log
GUI
CLI
Discoverable — you can see the options
You need to know the commands
Slow for repetitive tasks
Fast, scriptable, repeatable
Hard to document precisely
The command is the documentation
Needs a desktop session
Works remotely over SSH or PowerShell remoting
Technicians use both: the GUI to explore, the CLI to repeat and automate.
Term
Definition
GUI / CLI
Graphical / command-line user interface
Shell
A program that interprets commands (PowerShell, Bash)
Terminal
A window giving access to a shell
Run box
Win+R dialog for launching programs by name
.msc / .cpl
Microsoft Management Console snap-in / Control Panel applet
Profile
A user's folder and settings (C:\Users\name, /home/name)
Administrator / root
The all-powerful account on Windows / Linux
UAC
User Account Control — prompts before admin-level changes
sudo
Runs one command with root privileges on Linux
Least privilege
Using only the minimum rights needed
Permission bits
r, w, x for user, group and others on Linux
Octal notation
Numeric permissions, e.g. 750
ACL
Access control list — Windows/NTFS permissions
Process / PID
A running program / its process ID
Service / daemon
A background process (Windows term / Linux term)
Package manager
A tool that installs and updates software (apt, dnf, winget)
Event Viewer
Windows log viewer
Distro
A Linux distribution